﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WenSkin;

namespace WenSkinTest
{
    public partial class Form7 : Form
    {
        public Form7()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //初始化
            var ini = new Ini("test.ini");
            //设置值
            ini["Test1"] = "Value1";
            ini["Test11"] = "Value11";
            ini["Group2", "Test2"] = "Value2";

            //获取值（不区分大小写）
            var test1 = ini["test1"];
            var test2 = ini["group2", "test2"];

            //插入值
            ini.AddItem("group", "name", "value");
            //插入注释
            ini.AddRemark("group", "remark");

            //显示可视化编辑器
            ini.Show();
        }
    }
}
